package com.yue.ssa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yue.ssa.bean.Menu;
import com.yue.ssa.bean.RoleMenu;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface RoleMenuMapper extends BaseMapper<RoleMenu> {
    @Select("SELECT DISTINCT m1.* FROM menu m1 INNER JOIN menu m2 ON m1.id=m2.pid")
    List<Menu> queryParentMenus();
}
